package pers.cz.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

/**
 * @program: JefLogTail
 * @description: 日期工具类
 * @author: Cheng Zhi
 * @create: 2023-03-30 13:04
 **/
public class DateUtils {

    public static String getCurrentDateStr() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));//设置北京时间
        return simpleDateFormat.format(new Date());
    }
}
